package com.example.sunny

import android.annotation.SuppressLint
import android.app.Application
import android.content.Context
import com.baidu.mapapi.CoordType
import com.baidu.mapapi.SDKInitializer
import org.litepal.LitePal

class SunnyApplication:Application() {
    //全局获得context
    companion object{
        @SuppressLint("StaticFieldLeak")
        lateinit var context: Context

        // TODO: 2021/12/1
        const val TOKEN = "LEAQQcNS7SD18AST"

    }

    override fun onCreate() {
        super.onCreate()
        context = applicationContext
        SDKInitializer.initialize(this)
        SDKInitializer.setCoordType(CoordType.BD09LL)
        LitePal.initialize(this)
    }

}